<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model\Attraction;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property string $name 景区名称
 * @property string $intro_title 景区介绍标题
 * @property string $intro 景区介绍
 * @property string $cover_id 封面Id
 * @property string $address 地址
 * @property string $phone 联系电话
 * @property string $open_time 开门时间
 * @property string $close_time 关门时间
 * @property int $status 状态1-正常 2-关闭
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Attraction extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'intro_title', 'intro', 'cover_id', 'address', 'phone', 'open_time', 'close_time', 'status', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'cover_id' => 'string', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
